package com.tcoiss.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("fence_district")
public class FenceDistrict {
    private static final long serialVersionUID=1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long parentId;

    /** 区域名称 */
    private String districtName;

    /** 城市 */
    private String city;

    /** 城市编码 */
    private String cityCode;

    /** 行政区划 */
    private String adcodeName;

    /** 行政区划编码 */
    private String adcode;

    /** 区域点 */
    private String districtPoints;

    private String yDistrictPoints;

    /** 区域半径 */
    private Long districtRadius;

    /** 1.城市，2.区县，3.乡镇*/
    private Integer districtLevel;

    /** 创建时间 */
    private Date createTime;

    /** 区域颜色 */
    private String districtColor;

    /** 区域属性 0是安装 1是配送 */
    private Integer districtPop;

    @TableField(exist = false)
    private List districtPointList;

    @TableField(exist = false)
    private List pointList;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
